//
//  CalculateFrameView.m
//  Daybook
//
//  Created by dllo on 16/5/20.
//  Copyright © 2016年 zhangbin. All rights reserved.
//

#import "CalculateFrameView.h"

#define MAIN_WIDTH [[UIScreen mainScreen] bounds].size.width
#define MAIN_HEIGHT [[UIScreen mainScreen] bounds].size.height

@implementation CalculateFrameView

+ (float)setWidth:(float)width {
    float screenWidth = MAIN_WIDTH;
    float newWidth = (width / 414.0) * screenWidth;
    return newWidth;
}


+ (float)setHeight:(float)height {
    float screenHeight = MAIN_HEIGHT;
    float newHeight = (height / 736.0) * screenHeight;
    return newHeight;
}


@end
